import {ROUTES} from '@/utils/enums';
import {PaginationParams} from '@/utils/types';
import {SearchParams, SubmissionDataType} from '@/utils/types/administrative/file-collection';
import {httpRequest} from '@/utils/umiRequest';

const baseURL = ROUTES.FILECOLLECTION;

/**
 * @description: 获取我的提交列表
 * @author: YoungYa
 * @param {SearchParams} options
 */
export const getSubmissionList = (options?:SearchParams) =>
  httpRequest.get<{ list: SubmissionDataType[], total: number } & PaginationParams>(`${baseURL}/all`, options);
